<template>
	<view class="box">
		<view class="listbox" v-for="(item,index) in 4">
			<view class="orderbox">
				<text>订单号：15978541</text>
			</view>
			<Baesorder></Baesorder>
			<view class="lastbox">
				<text>仅退款，退款成功</text>
			</view>
			<view class="hr"></view>
			<view class="ckxq">
				查看详情
			</view>
		</view>
	</view>
</template>

<script>
	import Baesorder from "../../components/Baesorder/index.vue"
	export default {
		data() {
			return {}
		},
		methods: {
			change(index) {
				this.current = index;
			},
			// 搜索
			search() {
				this.jumpLink({
					link: "/pagesA/search_result/index"
				})
			},
			// 申请退款
			refund() {
				this.jumpLink({
					link: "/pagesA/application/index"
				})
			},
			// 查看物流
			logistics() {
				this.jumpLink({
					link: "/pages/logistics/index"
				})
			}
		},
		components: {
			Baesorder
		},
		// 触底懒加载
		onReachBottom() {
			console.log("触底成功")
		},
		// 下拉刷新
		onPullDownRefresh() {
			setTimeout(function(){
				uni.stopPullDownRefresh()
			},1000)
		}
	}
</script>

<style scoped lang="scss">
	.box {
		background-color: #fff;

		.listbox {
			padding: 20rpx;
			box-sizing: border-box;
			border-bottom: 13rpx solid #f6f6f6;

			.orderbox {
				display: flex;
				align-items: center;
				justify-content: space-between;

				text {
					font-family: SourceHanSansCN-Regular;
					font-size: 24rpx;
					color: #666666;
				}
			}

			.lastbox {
				display: flex;
				align-items: center;
				justify-content: space-between;
				margin-top: 10rpx;

				text {
					font-family: SourceHanSansCN-Regular;
					font-size: 24rpx;
					color: #666666;

				}

				.hj {
					margin-left: 10rpx;

					text {
						color: #f73f33;
					}
				}

				.bnbox {
					display: flex;
					align-items: center;

					.qxdd {
						width: 115rpx;
						height: 41rpx;
						border-radius: 20rpx;
						border: solid 1rpx #bebebe;
						line-height: 41rpx;
						text-align: center;
						font-family: SourceHanSansCN-Regular;
						font-size: 24rpx;
						color: #333333;
						margin-left: 10rpx;
					}
				}
			}
		}
	}

	.hr {
		width: 100%;
		height: 1rpx;
		background-color: #EEEEEE;
		margin-top: 10rpx;
	}

	.ckxq {
		width: 166rpx;
		height: 52rpx;
		background-image: linear-gradient(89deg,
				#fc6830 0%,
				#f6301e 100%);
		border-radius: 26rpx;
		line-height: 52rpx;
		text-align: center;
		font-family: MicrosoftYaHei;
		font-size: 28rpx;
		color: #ffffff;
		margin-left: 500rpx;
		margin-top: 20rpx;
	}
</style>
